Blazor | ComponentOne
C1.DataCollection Assembly / C1.DataCollection Namespace / IDataCollectionEx Class / SortAsync Method / SortAsync<T>(IDataCollection<T>,SortDescription[]) Method
The data collection.
The sort descriptions that determine how the data will be sort.

In This Topic
    SortAsync<T>(IDataCollection<T>,SortDescription[]) Method
    In This Topic
    Sorts the data collection according to the specified sort descriptions.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function SortAsync(Of T As Class)( _
       ByVal dataCollection As IDataCollection(Of T), _
       ByVal ParamArray sortDescriptions() As SortDescription _
    ) As Task
    public static Task SortAsync<T>( 
       IDataCollection<T> dataCollection,
       params SortDescription[] sortDescriptions
    )
    where T: class

    Parameters

    dataCollection
    The data collection.
    sortDescriptions
    The sort descriptions that determine how the data will be sort.

    Type Parameters

    T
    See Also